using System;
using System.Data.Entity.ModelConfiguration;
using System.Data.Common;
using System.Data.Entity;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace SampleApp.Domain.Map
{
    public class SysRoleMap : EntityTypeConfiguration<SysRole>
    {
        public SysRoleMap()
        {
            this.ToTable("exp_t_application_role");
            this.HasKey(t => t.RoleID);
            this.Property(t => t.RoleID).HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);
            this.Property(t => t.RoleID).HasColumnName("roleid");
            this.Property(t => t.RoleName).HasColumnName("rolename");
            this.Property(t => t.Remark).HasColumnName("remark");
        }
    }
}

